import React from 'react';
import Taro from '@tarojs/taro';
import { View } from '@tarojs/components';
import styles from './style.scss';

const defBack = 'linear-gradient(326deg, rgb(84, 157, 227), rgb(0, 186, 239))';

export default function Card2(props) {

  const { className, style, background = defBack } = props;
  
  return (
    <View className={`${styles.card2} ${className}`} style={{ ...style, background }}>
      { props.children }
    </View>
  );
}
